//
//  LoginTextField.m
//  Animation
//
//  Created by 陈亚勃 on 16/3/8.
//  Copyright © 2016年 cyb. All rights reserved.
//

#import "LoginTextField.h"

@interface LoginTextField()

@end

@implementation LoginTextField



- (void)drawRect:(CGRect)rect {
    if (self.leftImage) {
        UIImageView *leftView = [[UIImageView alloc] initWithImage:self.leftImage];
        leftView.frame = CGRectMake(0, 0, 30, 30);
        leftView.center = CGPointMake(leftView.center.x + 5, leftView.center.y);
        
        self.leftView = leftView;
        self.leftViewMode = UITextFieldViewModeAlways;
    }
}


@end
